import 'package:flutterproject/generated/json/base/json_convert_content.dart';
import 'package:flutterproject/page/mine/children/order/children/logistics_tracking/data/logistics_track_bean.dart';

LogisticsTrackBean $LogisticsTrackBeanFromJson(Map<String, dynamic> json) {
	final LogisticsTrackBean logisticsTrackBean = LogisticsTrackBean();
	final int? queryTimes = jsonConvert.convert<int>(json['queryTimes']);
	if (queryTimes != null) {
		logisticsTrackBean.queryTimes = queryTimes;
	}
	final String? upgradeInfo = jsonConvert.convert<String>(json['upgrade_info']);
	if (upgradeInfo != null) {
		logisticsTrackBean.upgradeInfo = upgradeInfo;
	}
	final int? feeNum = jsonConvert.convert<int>(json['fee_num']);
	if (feeNum != null) {
		logisticsTrackBean.feeNum = feeNum;
	}
	final int? status = jsonConvert.convert<int>(json['status']);
	if (status != null) {
		logisticsTrackBean.status = status;
	}
	final String? expSpellName = jsonConvert.convert<String>(json['expSpellName']);
	if (expSpellName != null) {
		logisticsTrackBean.expSpellName = expSpellName;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		logisticsTrackBean.msg = msg;
	}
	final String? updateStr = jsonConvert.convert<String>(json['updateStr']);
	if (updateStr != null) {
		logisticsTrackBean.updateStr = updateStr;
	}
	final List<dynamic>? possibleExpList = jsonConvert.convertListNotNull<dynamic>(json['possibleExpList']);
	if (possibleExpList != null) {
		logisticsTrackBean.possibleExpList = possibleExpList;
	}
	final bool? flag = jsonConvert.convert<bool>(json['flag']);
	if (flag != null) {
		logisticsTrackBean.flag = flag;
	}
	final String? tel = jsonConvert.convert<String>(json['tel']);
	if (tel != null) {
		logisticsTrackBean.tel = tel;
	}
	final int? retCode = jsonConvert.convert<int>(json['ret_code']);
	if (retCode != null) {
		logisticsTrackBean.retCode = retCode;
	}
	final String? logo = jsonConvert.convert<String>(json['logo']);
	if (logo != null) {
		logisticsTrackBean.logo = logo;
	}
	final String? expTextName = jsonConvert.convert<String>(json['expTextName']);
	if (expTextName != null) {
		logisticsTrackBean.expTextName = expTextName;
	}
	final List<LogisticsTrackData>? data = jsonConvert.convertListNotNull<LogisticsTrackData>(json['data']);
	if (data != null) {
		logisticsTrackBean.data = data;
	}
	final String? mailNo = jsonConvert.convert<String>(json['mailNo']);
	if (mailNo != null) {
		logisticsTrackBean.mailNo = mailNo;
	}
	final int? dataSize = jsonConvert.convert<int>(json['dataSize']);
	if (dataSize != null) {
		logisticsTrackBean.dataSize = dataSize;
	}
	final int? update = jsonConvert.convert<int>(json['update']);
	if (update != null) {
		logisticsTrackBean.update = update;
	}
	return logisticsTrackBean;
}

Map<String, dynamic> $LogisticsTrackBeanToJson(LogisticsTrackBean entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['queryTimes'] = entity.queryTimes;
	data['upgrade_info'] = entity.upgradeInfo;
	data['fee_num'] = entity.feeNum;
	data['status'] = entity.status;
	data['expSpellName'] = entity.expSpellName;
	data['msg'] = entity.msg;
	data['updateStr'] = entity.updateStr;
	data['possibleExpList'] =  entity.possibleExpList;
	data['flag'] = entity.flag;
	data['tel'] = entity.tel;
	data['ret_code'] = entity.retCode;
	data['logo'] = entity.logo;
	data['expTextName'] = entity.expTextName;
	data['data'] =  entity.data?.map((v) => v.toJson()).toList();
	data['mailNo'] = entity.mailNo;
	data['dataSize'] = entity.dataSize;
	data['update'] = entity.update;
	return data;
}

LogisticsTrackData $LogisticsTrackDataFromJson(Map<String, dynamic> json) {
	final LogisticsTrackData logisticsTrackData = LogisticsTrackData();
	final String? context = jsonConvert.convert<String>(json['context']);
	if (context != null) {
		logisticsTrackData.context = context;
	}
	final String? time = jsonConvert.convert<String>(json['time']);
	if (time != null) {
		logisticsTrackData.time = time;
	}
	return logisticsTrackData;
}

Map<String, dynamic> $LogisticsTrackDataToJson(LogisticsTrackData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['context'] = entity.context;
	data['time'] = entity.time;
	return data;
}